package com.itheima.dao;

import com.itheima.entity.PageResult;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    Set<Permission> findByRoleId(@Param("id") Integer id);

    List<Permission> findPage(@Param("queryString") String queryString);

    void add(Permission permission);

    Permission findById(@Param("id") Integer id);


    Integer findCountById(@Param("id")Integer id);

    Integer selectCountById(Permission permission);


}
